Repository navigation
fix(id): refuse duplicate claim IDs in tag.clear check_op - #4768
Conversation
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 9 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. CodeRabbit Verify
|
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
Codex findings disposition (task 6765): the Codex code review run on commit 2c47b7e failed Codex-side — the connector reports its usage limits were reached and it could not complete the review. There are no Codex finding threads on this PR (no inline review comments, no review bodies) to disposition; the summary's failed status is the infra failure, not a code finding. CodeRabbit is skipping. Targeted tests verified on the laptop against the committed tree: |
Fixes #4765
What
check_opinpkgs/id/src/tag_claims.rsvalidated atag.clearonly againstMAX_CLEAR_CLAIMS(256) and never refused a claim ID repeated in the same clear — unlike every sibling hash-set field in a chain extension (ChainExt.after→DuplicateAfter,NoteOp::Reviseparents →Field, session-checkpoint participants →Field).The Clear branch of
check_opnow refuses a repeated claim hash withTagError::Field("a clear names a claim twice"), in the sibling style. No fold behavior changes;MAX_CLEAR_CLAIMSitself is unchanged.Tests
Regression tests alongside
test_a_clear_naming_too_many_claims_is_refused:test_a_clear_naming_a_claim_twice_is_refused— adjacent and non-adjacent duplicates are refused withTagError::Fieldtest_a_clear_naming_max_distinct_claims_is_accepted— 256 distinct claims still passTargeted run:
cargo test --lib tag_claimsinpkgs/id(laptop) — results in the closing agent note on #4765.Queue: task 6765 (repo-health-code-pilot), lane code-e.
Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.